<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?php echo $title; ?></title>
</head>
<body style="font-size:100%; color: #646464; font: normal 14px  Arial, Helvetica, sans-serif;">
<table id="printable" style="clear:both; margin:0px auto; border:1px solid #009118; font-size:13px; width:718px; padding: 10px 20px 20px 20px; border-collapse:separate; " cellspacing="0" cellpadding="0">
    <tr>
        <td colspan="3">
            <table style=" border-bottom: 3px solid #009118; padding-bottom: 12px;"  width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr style=" ">
                    <td style="width:330px;">
                        <a style="display:block; margin-left:5px; float:left; margin-top:1px; border:none; color:#707070; " href="<?php echo $home_url ?>"><img src="<?php echo $base.$template ?>images/email-logo.png" alt="<?php echo $store_name ?>" /></a>
                    </td>
                    <td style="text-align:right; vertical-align: middle; padding:2px 0; ">
                        <p style="font: normal 13px  Arial, Helvetica, sans-serif; color:#787878; margin:3px 0 0 0; text-align: right; ">Hot & Cold </p>
                        <p style="font: normal 13px  Arial, Helvetica, sans-serif; color:#787878; margin:3px 0 0 0; text-align: right;">Hundige Strandvej 111</p>
                        <p style="font: normal 13px  Arial, Helvetica, sans-serif; color:#787878; margin:3px 0 0 0; text-align: right;">2670 Greve</p>
                        <p style="font: normal 13px  Arial, Helvetica, sans-serif; color:#787878; margin:3px 0 0 0; text-align: right;">Tlf. 4360 0011 </p>
                        <p style="font: normal 13px  Arial, Helvetica, sans-serif; color:#787878; margin:3px 0 0 0; text-align: right;">Email: <a href="mailto:info@hotcold.dk"> info@hotcold.dk</a></p>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <table width="700px" border="0" cellspacing="0" cellpadding="0" style="margin:0px;">
                <tr>
                    <td colspan="3" style="font-family: Arial, Helvetica, sans-serif; font-size:24px; text-align:center; color:#ef810a; padding-top:18px;" >ORDREBEKRÆFTELSE</td>
                </tr>
                <tr>
                    <td colspan="3" style="font-family: Arial, Helvetica, sans-serif; text-align:center; font-size:16px; color:#3c3c3c; padding-bottom:15px; padding-top:5px;" >TAK FOR DIN BESTILLING </td>
                </tr>
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td  style="width: 95px;color:#000; font: 14px  Arial, Helvetica, sans-serif; padding: 8px 0;">Kundetype: </td>
                                <td  style="color:#000; font: 14px  Arial, Helvetica, sans-serif; padding: 8px 0;"><?php echo $order['customer_type'] ?></td>
                            </tr>
                            <tr>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif; padding: 4px 0;">Navn:</td>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif; padding: 4px 0;"><?php echo $order['firstname'] ?></td>
                            </tr>
                            <tr>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding: 4px 0;">Adresse:</td>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding: 4px 0;"><?php echo $order['payment_address_1'] ?></td>
                            </tr>
                            <tr>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding: 4px 0;">Postnr/By:</td>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding: 4px 0;"><?php echo $order['payment_postcode'] . ' ' . $order['payment_city'] ?></td>
                            </tr>
                            <tr>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding: 4px 0;">E-mail:</td>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding: 4px 0;"><?php echo $order['email'] ?></td>
                            </tr>
                            <tr>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding: 4px 0;">Tlf. nr.:	</td>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding: 4px 0;"><?php echo $order['telephone'] ?></td>
                            </tr>
                        </table>
                    </td>
                    <td style="vertical-align:top;">
                        <table style=" width: 100px;text-align:left;" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="color:#000; font: 14px Arial, Helvetica, sans-serif;padding: 8px 0;">Ordrenr.</td>
                            </tr>
                            <tr>
                                <td style="color:#646464; font: normal 14px Arial, Helvetica, sans-serif;padding: 4px 0;"><?php echo $order['order_id'] ?></td>
                            </tr>
                        </table>
                    </td>
                    <td style="vertical-align:top;">
                        <table style="text-align:left;" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="color:#000; font: 14px  Arial, Helvetica, sans-serif;padding: 8px 0; ">Dato</td>
                            </tr>
                            <tr>
                                <td style="color:#646464; font: normal 14px Arial, Helvetica, sans-serif;padding: 4px 0;"><?php echo date('d-m-Y', strtotime($order['date_added'])) ?></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <?php if(trim($order['comment'])){ ?>
                    <tr>
                        <td colspan="3" style="color:#000; font: 14px  Arial, Helvetica, sans-serif;padding: 18px 0 8px 0; "> Besked</td>
                    </tr>
                    <tr>
                        <td colspan="3" style="color:#646464; font: normal 14px Arial, Helvetica, sans-serif;padding: 4px 0;"><?php echo $order['comment'] ?></td>
                    </tr>
                <?php } ?>
                <tr>
                    <td colspan="3" style="padding-top:18px;">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="background:#008341; ">
                                <td style="color:#fff; font: 14px Arial, Helvetica, sans-serif; padding: 8px 10px;"> </td>
                                <td style="color:#fff; font: 14px Arial, Helvetica, sans-serif; padding: 8px 10px;">Varenavn</td>
                                <td style="color:#fff; font: 14px Arial, Helvetica, sans-serif; padding: 8px 10px; text-align: center;">Pr. stk</td>
                                <td style="width: 110px;color:#fff; font: 14px Arial, Helvetica, sans-serif; padding: 8px 10px; text-align: center;">Antal</td>
                                <td style="color:#fff; font: 14px Arial, Helvetica, sans-serif; padding: 8px 10px; text-align: right">Total</td>
                            </tr>
                            <?php foreach($order['products'] as $product){ ?>
                            <tr>
                                <td style="width: 110px; padding-top:10px;"><img width="110" height="71" src="<?php echo $product['image'] ?>" alt="<?php echo $product['name'] ?>" /></td>
                                <td style="width: 275px; vertical-align: top; font: normal 15px Arial, Helvetica, sans-serif;">
                                    <p style="text-transform:none; color:#000; margin:22px 0 5px 0; font-size:13px; font-weight:bold;"><?php echo $product['name'] ?></p>
                                    <p style="color:#646464; margin:5px 0; font-size:12px;"><?php echo $product['desc'] ?></p>
                                </td>
                                <td style="width: 110px;color:#000; font: normal 15px Arial, Helvetica, sans-serif; text-align: center; "><?php echo $product['price'] ?></td>
                                <td style="color:#000; font: normal 15px Arial, Helvetica, sans-serif; text-align: center;"><?php echo $product['quantity'] ?></td>
                                <td style="color:#000; font: normal 15px Arial, Helvetica, sans-serif; text-align:right"><?php echo $product['total'] ?></td>
                            </tr>

                            <?php } ?>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="padding-top:25px;">
                        <table style="border-top: 1px solid #ccc; padding-top:10px;" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="color:#000; font: 14px  Arial, Helvetica, sans-serif;padding: 8px 0; width:200px; padding-left: 10px;">Leveringsdato</td>
                                <td style="color:#000; font: 14px  Arial, Helvetica, sans-serif;padding: 8px 0; width:180px;">Tidspunkt</td>
                                <td style="color:#000; font: 14px  Arial, Helvetica, sans-serif;padding: 8px 0; width:190px;">Leveringspris</td>
                                <td style="color:#000; font: 14px  Arial, Helvetica, sans-serif;padding: 8px 0; text-align:left;;">Samlet beløb</td>
                            </tr>
                            <tr>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;padding-left: 10px;"><?php echo date('d-m-Y', strtotime($order['date_added'])) ?></td>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;"><?php echo date('H:i', strtotime($order['delivery_time'])) ?></td>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif;"><?php echo $order['totals']['shipping']['text'] ? $order['totals']['shipping']['text'] : '0 kr.' ?></td>
                                <td style="color:#646464; font: normal 14px  Arial, Helvetica, sans-serif; text-align:left; "><?php echo $order['totals']['total']['text'] ?></td>
                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td colspan="3" style="padding:25px 0px 0 0;">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="vertical-align: top;">
                                <td style="width: 355px;text-align: center; vertical-align: central;" valign="middle" >
                                    <table style="border:1px solid #008244; width: 330px; /*margin:0px auto; */" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="vertical-align: top; height:80px; padding-top:10px; text-align:center;" valign="top">
                                                <h2 style="margin:0; font: 16px Arial, Helvetica, sans-serif; color:#ef810a; padding: 10px 0;"><?php echo $order['payment_method'] ?></h2>
                                                <p style="margin:0;	color: #000; font-size:14px;  font-family: Arial, Helvetica, sans-serif; "><?php echo $order['totals']['total']['text'] ?></p>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="width: 355px; text-align: center; vertical-align: central; padding-left: 10px;" valign="middle">
                                    <table style="border:1px solid #626262; float:right; width: 330px;"border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="vertical-align: top; height:80px; padding-top:10px;  margin-left: 10px; text-align:center;" valign="top">
                                                <h2 style="margin:0; font: 16px  Arial, Helvetica, sans-serif; color:#ef810a;padding: 10px 0;"><?php echo $order['shipping_method'] ?></h2>
                                                <p style="margin:0; color: #000; font-size:14px;  font-family: Arial, Helvetica, sans-serif; ">
                                                    <span style=" margin-right: 30px;"><?php echo date('d-m-Y', strtotime($order['delivery_date'])) ?> </span> <span><?php echo date('H:i', strtotime($order['delivery_time'])) ?></span>
                                                </p>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<!-- footer style="font: 13px Arial,Helvetica,sans-serif; color: rgb(120, 120, 120); text-align: center; margin: 0px auto; width: 718px; padding: 20px 0px;">
    <div>&copy; <?php echo date('Y') ?> Hot &amp; Cold | Hundige Strandvej 111 | 2670 Greve | Tlf. 4360 0011 | CVR-nr. 3344 8007 | Email: <a href="mailto:info@hotcold.dk"> info@hotcold.dk</a></div>
</footer -->
</body>
</html>
